package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum WayBillSignStatus {

    signType_01(101, "已签收"),
    signType_02(102, "未签收");

    private Integer signType;
    private String signTypeName;

    public static String getSignTypeValue(int index) {
        for (WayBillSignStatus value : WayBillSignStatus.values()) {
            if (value.getSignType() == index) {
                return value.getSignTypeName();
            }
        }
        return null;
    }
}
